# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=py3-u-msgpack
_pyname=u-msgpack-python
pkgver=2.7.0
pkgrel=0
pkgdesc="A portable, lightweight MessagePack serializer and deserializer written in pure Python."
url="https://github.com/vsergeev/u-msgpack-python"
arch="noarch"
license="MIT"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/vsergeev/$_pyname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-u-msgpack" # Backwards compatibility
provides="py-u-msgpack=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b7b7254c810aa70821666e1d54d97de63481da3c25fce1c5ee3b9ee8ba80de407bc344b5967d11403791c012ba17d216c5961861836e70619aed318a40cf6c30  py3-u-msgpack-2.7.0.tar.gz"
